/**
 * Created by mayousheng on 2016/11/25.
 */
import { PropTypes } from 'react'
const { func, object, shape, string ,number,bool,oneOf} = PropTypes;


export const routerShape = shape({
    push: func.isRequired,
    replace: func.isRequired,
    go: func.isRequired,
    goBack: func.isRequired,
    goForward: func.isRequired,
    setRouteLeaveHook: func.isRequired,
    isActive: func.isRequired
});

export const roleShape = shape({
    app:string.isRequired,
    bname:string.isRequired,
    icon:string.isRequired,
    id:string.isRequired,
    name:string.isRequired,
    pGroup:string.isRequired,
    pc:string.isRequired,
    sid:string.isRequired,
    sort:string,
    state:string.isRequired,
})